/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2024.
 * Description: Enhancements related to RTOS hangtask
 * Author: zhousiqi
 * Create: 2023-9-25
 */

#ifdef CONFIG_RTOS_HUNGTASK_TIMES
void set_hungtask_entry_time(void);
void show_hungtask_entry_times(void);
#endif

#ifdef CONFIG_RTOS_SUPPORT_PRIVATE_HUNGTASK
void disable_linus_hungtask_check(void);
void enable_linus_hungtask_check(void);
#endif

#ifdef CONFIG_RTOS_SUPPORT_PRIVATE_HUNGTASK
extern bool linus_hungtask_enable;
static inline bool linus_hungtask_check_enabled(void)
{
    return linus_hungtask_enable == false;
}
#else
static inline bool linus_hungtask_check_enabled(void)
{
    return false;
}
#endif
